class Person{
	name:string;
	age:number;
	
	
	constructor(name:string,age:number){
		this.name = name;
		this.age = age;
	}
	
	show():void{
		console.log(`名字:${this.name},,年龄:${this.age}`)
	}
}

let p:Person = new Person("小艾",18);
p.show();
